home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / gfx / show / MerlinGfx.lha / eflick.h < prev    next >
C/C++ Source or Header  |  1995-06-07  |  1KB  |  58 lines

  1. #define FHD_EXPAND_SIZE 102
  2.  
  3. struct fli_header
  4. {
  5.     unsigned long fhd_size;    /* Length of whole file */
  6.     int fhd_magic;        /* 0xaf11 */
  7.     int fhd_frames;
  8.     int fhd_width; 
  9.     int fhd_height;
  10.     int fhd_gap;
  11.     int fhd_flags;
  12.     int fhd_speed;        /* # of ticks between frames */
  13.     unsigned long fhd_next;
  14.     unsigned long fhd_frit;
  15.     char fhd_expand[FHD_EXPAND_SIZE];
  16. };
  17.  
  18. #define FR_EXPAND_SIZE 8
  19.  
  20. struct frame_header 
  21. {
  22.     unsigned long fr_size;    /* Frame size in bytes */
  23.     int fr_magic;        /* 0xf1fa */
  24.     int fr_chunks;        /* Number of chunks */
  25.     char fr_expand[FR_EXPAND_SIZE];
  26. };
  27.  
  28. struct chunk_header
  29. {
  30.     unsigned long ch_bytes;    /* # of bytes in this chunk */
  31.     int ch_type;        /* Type of chunk */
  32. };
  33.  
  34. #define FLI_256_COLOR 4  /* Compressed color map (8 bit)*/
  35. #define FLI_DELTA     7  /* Wordwise run-length compressed frame */
  36. #define FLI_COLOR    11  /* Compressed color map (6 bit)*/
  37. #define FLI_LC       12  /* Line, compressed */
  38. #define FLI_BLACK    13  /* Set whole screen black */
  39. #define FLI_BRUN     15  /* Bytewise run-length compression-1st frame only */
  40. #define FLI_COPY     16  /* Uncompressed 64k to follow */
  41.  
  42. #define FLI_SYNC    255  /* Sent between each frame (NOT in .fli file) */
  43.  
  44. #define FLI_MAGIC 0xaf11
  45. #define FLC_MAGIC 0xaf12 /* flc magic */
  46.  
  47. #define MAXCOL 256
  48.  
  49. #define SIZE_HEADER 128
  50. #define SIZE_FHEADER 16
  51. #define SIZE_CHEADER 6
  52.  
  53. #ifdef USE_MEMSET
  54. #define bcopy(a,b,n) memcpy(b,a,n)
  55. #define bzero(a,n) memset(a,0,n)
  56. #endif
  57.  
  58.